﻿<%@ Page Language="C#" MasterPageFile="~/pages/EditData/MasterPage.master" AutoEventWireup="true" CodeFile="EditMaterial.aspx.cs" Inherits="pages_Default" Title="物资信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="height: 415px; width: 657px;">
        <tr>
            <td align="left" colspan="1" style="width: 80px" valign="middle">
            </td>
            <td align="left" colspan="2" style="height: 25px" valign="middle">
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" style="width: 80px" valign="middle">
            </td>
            <td style="height: 21px; width: 249px;" valign="middle" align="left">
                请选择物资种类：<asp:DropDownList ID="ddlBigType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlBigType_SelectedIndexChanged">
                </asp:DropDownList></td>
            <td style="width: 166px; height: 21px" valign="middle" align="center">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 80px" valign="middle">
            </td>
            <td align="left" style="width: 249px; height: 21px" valign="middle">
                请选择物资类别：<asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                </asp:DropDownList></td>
            <td align="center" style="width: 166px; height: 21px" valign="middle">
            </td>
        </tr>
        <tr>
            <td align="center" colspan="1" style="width: 80px" valign="middle">
            </td>
            <td style="height: 99px;" valign="middle" align="center" colspan="2">
                <asp:GridView ID="gvMaterial" runat="server" AutoGenerateColumns="False" PageSize="5" Width="577px" AllowPaging="True" OnPageIndexChanging="gvMaterial_PageIndexChanging" BorderColor="Black" BorderWidth="1px" CellSpacing="1">
                    <Columns>
                        <asp:TemplateField HeaderText="操作">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnDelete" runat="server" OnCommand="lbtnDelete_Command" OnLoad="lbtnDelete_Load" CausesValidation="False">删除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="WzID" HeaderText="编码" />
                        <asp:BoundField DataField="Name" HeaderText="名称" />
                        <asp:BoundField DataField="Mode" HeaderText="型号" />
                        <asp:BoundField DataField="Spec" HeaderText="规格" />
                        <asp:BoundField DataField="Card" HeaderText="品牌" />
                        <asp:BoundField DataField="UnitPrise" HeaderText="销售单价" />
                        <asp:BoundField DataField="Unit" HeaderText="计量单位" />
                        <asp:BoundField DataField="Amount" HeaderText="预计数量" />
                        <asp:BoundField DataField="Type" HeaderText="资产标识" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="1" style="width: 80px" valign="top">
            </td>
            <td align="center" colspan="2" style="height: 131px" valign="top">
                <table style="width: 88%; height: 110px;">
                    <tr>
                        <td align="left" style="height: 22px">
                            编码：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:TextBox ID="txtID" runat="server" CssClass="input1" ReadOnly="True" Width="61px"></asp:TextBox>
                        </td>
                    
                        <td align="left" style="height: 22px">
                            物资名称：</td>
                        <td style="height: 22px" align="left">
                            <asp:TextBox ID="txtName" runat="server" CssClass="input1" Width="61px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="left" style="height: 22px;">
                            型号：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:TextBox ID="txtMode" runat="server" CssClass="input1"></asp:TextBox>
                        </td>
                    
                        <td align="left" style="height: 22px;">
                            规格：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:TextBox ID="txtSpec" runat="server" CssClass="input1"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" style="height: 22px;">
                            品牌：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:TextBox ID="txtCard" runat="server" CssClass="input1"></asp:TextBox>
                        </td>
                    
                        <td align="left" style="height: 22px;">
                            销售单价：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:TextBox ID="txtUnitPrise" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtUnitPrise"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="left" style="height: 22px">
                            计量单位：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:DropDownList ID="ddlUnit" runat="server">
                            </asp:DropDownList></td>
                        <td align="left" style="height: 22px;">
                            预计数量：
                        </td>
                        <td style="height: 22px;" align="left">
                            <asp:TextBox ID="txtAmount" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtAmount"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="left" style="height: 17px;">
                        固定资产标识:</td>
                        <td style="height: 17px;" align="left">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True">是</asp:ListItem>
                                <asp:ListItem>不是</asp:ListItem>
                            </asp:RadioButtonList></td>
                        <td  align="center" style="height: 17px;">
                            &nbsp;</td>
                        <td align="left" style="height: 17px">
                            <asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" Text="添加" /><input id="Reset1" type="reset" value="重填" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

